import java.util.*;
public class TestDemo {
    public static void main() {
        Scanner scan = new Scanner(System.in);
        HashMap<String, Integer> has = new HashMap<>();
        while (scan.hasNext()) {
            String str = scan.next();
            if (has.get(str) == null) {
                has.put(str, 1);
            } else {
                int val = has.get(str);
                has.put(str, val + 1);
            }
        }
    }

        public static int func(int n) {
            if( n == 0) {
                return 1;
            }

            return func(n-1) + func(n-2);

        }
        public static void main1(String[] args) {
            int tmp = 0;
            int count = 0;
            Scanner scan = new Scanner(System.in);
            int n = scan.nextInt();
            for(int i = 0; i < n ;i++) {
                count = func(i);
                if(count >= n) {
                    break;
                }
            }
            System.out.println(Math.abs(count - n));
        }

}
